﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class MonBUS
    {
        public static bool ThemMon(MonDTO mon)
        {
            return MonDAO.ThemMon(mon);
        }

        public static bool XoaMon(string tenmon)
        {
            return MonDAO.XoaMon(tenmon);
        }

        public static bool SuaThongTinMon(MonDTO mon)
        {
            return MonDAO.SuaThongTinMon(mon);
        }

        public static MonDTO LayThongTinMon(string tenmon)
        {
            return MonDAO.LayThongTinMon(tenmon);
        }

        public static MonDTO LayThongTinMon(long mamon)
        {
            return MonDAO.LayThongTinMon(mamon);
        }

        public static List<MonDTO> LayDanhSachMon()
        {
            return MonDAO.LayDanhSachMon();
        }
    }
}
